<template>
    <div class="picture-wrapper container-channel">
        <div class="popular">
            <p class="popular-vote-status text-center voting">投票活动已结束</p>
            <!-- voting end -->
            <div class="popular-counts text-center">
                <div class="popular-counts-item"><span>21</span>参赛</div>
                <div class="popular-counts-item"><span>21589</span>票数</div>
                <div class="popular-counts-item"><span>1.9w</span>热度</div>
            </div>
            
            <div class="popular-search">
                <div class="popular-search-form">
                    <input type="text" class="input-text" placeholder="请输入编号或标题" />
                    <i class="icon iocn-search"></i>
                </div>
                <button type="button" class="button button-search">搜索</button>
            </div>

            <div class="tab tab-player">
                <div class="tab-header">
                    <ul class="tab-header-list">
                        <li class="tab-header-item"><p>全部参赛</p></li>
                        <li class="tab-header-item"><p>规则</p></li>
                    </ul>
                </div>
                <div class="tab-body">
                    <div class="tab-body-item">
                        
                        <div class="player-list">
                            <div class="player-item card">
                                <div class="card-img">
                                    <img src="../img/voter.jpg" alt="">
                                    <div class="card-extra">
                                        <p class="number">19号</p>
                                        <p class="counts">8046票</p>
                                    </div>
                                </div>
                                
                                <div class="card-body">
                                    <h5 class="card-title">周晓月</h5>
                                    <div class="card-buttons-group">
                                        <button type="button" class="btn btn-vote">投票</button>
                                    </div>
                                </div>

                                <span class="tag-rank rank-vote">1</span>
                            </div>

                            <div class="player-item card">
                                <div class="card-img">
                                    <img src="../img/voter.jpg" alt="">
                                    <div class="card-extra">
                                        <p class="number">19号</p>
                                        <p class="counts">8046票</p>
                                    </div>
                                </div>
                                
                                <div class="card-body">
                                    <h5 class="card-title">周晓月</h5>
                                    <div class="card-buttons-group">
                                        <button type="button" class="btn btn-vote">投票</button>
                                        <button type="button" class="btn btn-gift">送礼</button>
                                    </div>
                                </div>

                                <span class="tag-rank rank-vote">2</span>
                            </div>


                        </div>
                        <!-- /player-list -->

                        <div class="player-detail panel">
                            <div class="panel-header">
                                <span class="badge badge-number">19号</span>
                                <h4 class="panel-header-title">周晓燕</h4>
                                <p class="counts text-right"><i class="icon icon-follow"></i><span>8046</span></p>
                            </div>
                            <div class="panel-body">
                                <div class="btn-groups">
                                    <button type="button" class="btn btn-vote">投票</button>
                                    <button type="button" class="btn btn-gift">送礼</button>
                                    <button type="button" class="btn btn-help">帮TA拉票</button>
                                </div>

                                <div class="player-detail-imgs">
                                    <swiper>
                        　　            <swiper-slide><img src="../img/voter.jpg" /></swiper-slide>
                                        <div class="swiper-pagination" slot="pagination"></div>
                                    </swiper>
                                </div>

                            </div>
                        </div>
                        <!-- /player-detail -->

                        <div class="player-detail panel">
                            <div class="panel-header">
                                <span class="badge badge-number">19号</span>
                                <h4 class="panel-header-title">周晓燕</h4>
                                <p class="counts text-right"><i class="icon icon-follow"></i><span>8046</span></p>
                            </div>
                            <div class="panel-body">
                                <div class="btn-groups">
                                    <button type="button" class="btn btn-vote">投票</button>
                                    <button type="button" class="btn btn-help">帮TA拉票</button>
                                </div>

                                <div class="player-detail-imgs">
                                    <swiper>
                        　　            <swiper-slide><img src="../img/voter.jpg" /></swiper-slide>
                                        <div class="swiper-pagination" slot="pagination"></div>
                                    </swiper>
                                </div>

                            </div>
                        </div>
                        <!-- /player-detail -->


                        <div class="panel panel-receive-gift">
                            <div class="panel-header">
                                <h4 class="panel-header-title text-center">TA收到的礼物</h4>
                            </div>
                            <div class="panel-body panel-receive-wrapper">
                                <div class="panel-receive-list">
                                    <div class="panel-receive-media media">
                                        <div class="media-object"><img src="../img/a1.jpg" alt=""></div>
                                        <div class="media-body">
                                            <h4 class="media-title">不会飞的蚊子 送出了1份 爱心</h4>
                                            <div class="media-desc"><time>2019-08-22 11:35:01</time></div>
                                        </div>
                                    </div>

                                    <div class="panel-receive-media media">
                                        <div class="media-object"><img src="../img/a1.jpg" alt=""></div>
                                        <div class="media-body">
                                            <h4 class="media-title">不会飞的蚊子 送出了1份 爱心</h4>
                                            <div class="media-desc"><time>2019-08-22 11:35:01</time></div>
                                        </div>
                                    </div>

                                    <div class="panel-receive-media media">
                                        <div class="media-object"><img src="../img/a1.jpg" alt=""></div>
                                        <div class="media-body">
                                            <h4 class="media-title">不会飞的蚊子 送出了1份 爱心</h4>
                                            <div class="media-desc"><time>2019-08-22 11:35:01</time></div>
                                        </div>
                                    </div>

                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- /tab-body-item -->

                    <div class="tab-body-item tab-body-item-rules">
                        <div class="panle panel-rules">
                            <div class="panel-header col-title text-center"><i class="oblique-line"></i> 规则 <i class="oblique-line"></i></div>
                            <div class="panle-body">

                            </div>
                        </div>
                        
                    </div>
                </div>
            </div>

            <div class="vote-dialog">
                
            </div>

        </div>
    </div>
</template>

<script>
import 'swiper/dist/css/swiper.css';
import { swiper, swiperSlide } from 'vue-awesome-swiper';
export default {
    components: {
        swiper,
        swiperSlide
    },
    props: {},
    data() {
        return {
            swiperOption: {
                pagination: {
            　　　　el: '.swiper-pagination'
            　　}
            } 
        };
    },
    computed: {},
    methods: {},
    created() {},
    mounted() {}
};
</script>
<style lang="scss" scoped>
.popular-vote-status {
    height: 56px;
    font-size: 24px;
    color: #fff;
    
    line-height: 56px;
    &.end{
        background: linear-gradient(180deg,rgba(36,36,36,1),rgba(89,89,89,1));
    }

    &.voting {
        background: linear-gradient(90deg,#bb24fc,#ff022a);
    }
}

.popular-counts {
    display: flex;
    font-size: 24px;
    color: #747474;
    background: #fff;
    .popular-counts-item {
        flex: 1;
        height: 84px;
        line-height: 84px;
        span { 
            margin-right: 6px;
            font-size: 32px;
            color: #0084FF;
        }
    }
}

.popular-search {
    display: flex;
    padding: 0 30px;
    background-color: #fff;
    .popular-search-form {
        flex: 1;
        font-size: 0;
    }
    .input-text {
        width: 100%;
        height: 64px;
        padding-left: 60px;
        font-size: 28px;
        line-height: 64px;
        background-color: #F0F0F0;
        border-radius: 4px;
    }

    .button-search {
        margin-left: 20px;
        font-size: 30px;
        color: #0084FF;
        line-height: 64px;
        background-color: #fff;
    }
}

.tab-player {
    
    .tab-header {
        padding: 30px;
        background-color: #fff;
    }

    .tab-header-list {
        display: flex;
    }

    .tab-header-item {
        flex: 1;
        padding: 2px 0;
        margin-left: 5px;
        border: 1px solid #ccc;
        font-size: 26px;
        color: #747474;
        text-align: center;
        border-radius: 2px;

        p {
            line-height: 48px;
        }
    }
}

.player-list {
    display: flex;
}

.player-item {
    position: relative;
    width: 50%;
    border: 5px solid#f6f6f6;
    background: #fff;
    border-radius: 4px;
}

.card {
    .card-img {
       width: 100%; 
       position: relative;
    }
    .card-title {
        font-size: 13px;
        color: #353535;
        line-height: 32px;
        margin: 20px 16px 24px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tag-rank {
        position: absolute;
        width: 40px;
        height: 48px;
        top: 0;
        right: 20px;
        font-size: 26px;
        text-align: center;
        line-height: 48px;
        color: #fff;
    }

    .card-buttons-group {
        display: flex;
        padding: 14px 16px;
        border-radius: 4px;
        overflow: hidden;
        .btn {
            flex: 1;
            height: 48px;
            border: 0 none;
            font-size: 24px;
            color: #fff;
            line-height: 48px;
        }
        .btn-vote { background: linear-gradient(-10deg,rgba(0,126,255,1),rgba(55,159,255,1)); }
        .btn-gift { background: linear-gradient(-10deg,rgba(255,59,92,1),rgba(255,93,120,1)); }
    }

    .card-extra {
        display: flex;
        position: absolute;
        z-index: 100;
        bottom: 10px;
        left: 0;
        > p {
            height: 48px;
            padding: 0 10px;
            font-size: 24px;
            line-height: 48px;;
            color: #fff;
        }
        .number {
            background: linear-gradient(-30deg,rgba(36,36,36,1),rgba(89,89,89,1));
        }

        .counts {
            background: linear-gradient(-30deg,rgba(255,59,92,1),rgba(255,93,120,1))
        }

    }
}


.player-detail {
    padding: 30px 24px;
    margin-top: 30px;
    background: #fff;
    border-radius: 4px;
    .badge-number {
        height: 36px;
        padding: 0 6px;
        font-size: 24px;
        color: #fff;
        background: linear-gradient(-30deg,rgba(36,36,36,1),rgba(89,89,89,1));
    }

    .panel-header {
        display: flex;
        .panel-header-title, p {
            flex: 1;
        }

        .icon {
            font-size: 42px;
            vertical-align: middle;
            position: relative;
            top: -4px;  
        }
    }
    .panel-header-title {
        margin-left: 4px;
        font-size: 32px;
        line-height: 36px;
        color: #353535;
        font-weight: bold;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .counts {
        font-size: 28px;
        color: #353535;
        span { margin-left: 6px; }
    }

    .panel-body {
        padding-top: 30px;
    }
    .btn-groups {
        display: flex;
        margin-bottom: 30px;

        .btn {
            flex: 1;
            height: 64px;
            border: 0 none;
            margin: 0 1px;
            font-size: 26px;
            color: #fff;
            text-align: center;
            border-radius: 4px;
        }
        .btn-vote {
            background: linear-gradient(-10deg,rgba(0,126,255,1),rgba(55,159,255,1));
        }
        .btn-gift {
            background: linear-gradient(-10deg,rgba(255,59,92,1),rgba(255,93,120,1));
        }
        .btn-help {
            background: linear-gradient(-10deg,rgba(255,156,0,1),rgba(255,181,0,1));
        }
    }
}


.player-detail-imgs {
    width: 50%;
    margin: 0 auto;
    .swiper-notification {
        bottom: -20px;
    }
}

.panel-receive-gift {
    padding: 60px 50px 0;
    margin-top: 30px;
    background: #fff; 

    .panel-header {
        margin-bottom: 30px;
    }

    .panel-header-title {
        margin: 0 30px;
        font-size: 32px;
        color: #353535;
    }
}

.panel-receive-media {
    display: flex;
    align-items: center;
    position: relative;
    padding: 10px 0;
    &:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: #f0f0f0;
        transform: scaleY(0.5);
    }

    .media-object {
        width: 90px;
        height: 90px;
        margin-right: 10px;
        border-radius: 100%;
        overflow: hidden;
    }

    .media-title {
        font-size: 28px;
        color: #000;
        line-height: 1.75;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .media-desc {
        font-size: 24px;
        color: #747474;
        line-height: 32px;
    }
}

.tab-body-item-rules {
    padding: 40px 30px;
}

.panel-rules {
    background-color: #fff;
    .panel-header {
        height: 60px;
        line-height: 60px;
    }
}
</style>